package com.ndpmedia.fb.pmd.configration.web.listener;

import org.springframework.web.context.ContextLoaderListener;

import javax.servlet.ServletContextEvent;


/**
 * 
 * @author Administrator
 *
 */
public class InitListener extends ContextLoaderListener {


    /**
     *
     * @param event event
     */
    public void contextDestroyed(ServletContextEvent event) {
        System.out.println("~~~~~~~~~~~~~~~~~~~~Config-Web 程序结束~~~~~~~~~~~~~~~~~~~~~");
        super.contextDestroyed(event);
    }

    /**
     *
     * @param event event
     */
    public void contextInitialized(ServletContextEvent event) {
        System.out.println("~~~~~~~~~~~~~~~~~~~~Config-Web 程序启动~~~~~~~~~~~~~~~~~~~~~");
        super.contextInitialized(event);
        // 加载配置
        loadConfig();
    }

    /**
     *
     */
    private void loadConfig() {

    }
}
